package com.effectiv.req1.repository;

import java.util.List;

import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import com.effectiv.req1.domain.Company;
import com.effectiv.req1.domain.Project;
import com.effectiv.req1.domain.UseCase;


@Repository
public interface UseCaseRepository extends MongoRepository<UseCase, String>{
	
	List<UseCase> findByCompany(Company company);
	List<UseCase> findByCompanyAndProjectIsIn(Company company, List<Project> projects);
	List<UseCase> findByCompanyAndProject(Company company, Project project);
}
